package cn.tb.ymcc.constants;

/** 系统错误码 **/
public enum YmccCode {

    EMP_NOT_NULL_NAME("4001","员工名字不能为空"),


    COMMON_SERIOUS("4002","重发时间一分钟还没到！！！"),

    COMMON_IMGCODE_NOT_NULL("4003","图形验证码不能为空"),

    COMMON_IMGCODE_TIMEOUT("4004","图形验证码已经过期了"),

    COMMON_IMGCODE_NOT_EQUALS("4005","图形验证码错误！"),

    COMMON_IMGCODEKEY_NOT_NULL("4000","图形验证码key为空");


    //错误码
    private String code;
    //错误信息
    private String message;

    YmccCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }
    public String getMessage() {
        return message+"["+code+"]";
    }
}